<extend name="Public/base"/>
<block name="body">
  <form method="post" class="form-horizontal J_ajaxForm" action="">
      <div class="table_list">
         <table  width="100%" class="table table_from table-bordered">
          <tbody>
            <tr>
              <td>分类名称:</td>
              <td><input type="text" class="input" name="name" value="{$data.name}"><span class="red">*</span></td>
            </tr>
          
            <tr>
              <td>备注:</td>
              <td><textarea name="remark" rows="5" cols="57">{$data.remark}</textarea></td>
            </tr>
          </tbody>
        </table>
      </div>
       <if condition="$edit">
     <input type="hidden"  name="id"   value="{$data.id}"  /></if>
      <div class="form-actions">
      <button class="btn btn-info ajax-post"   target-form="J_ajaxForm" type="submit">  <if condition="$edit">更新<else/>添加</if></button>
      	 <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
      </div>
    </form>
</block>